package com.aabbc.security.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * UserController
 *
 * @author: <a href="mailto:chenfenghai@oristartech.com">chenfenghai</a>
 * @version: 1.0
 * @date: 2019-11-13 11:21
 */
@RestController
@RequestMapping("/demo")
public class DemoController {

    @PostMapping("/login")
    public String login(){
        return "success";
    }

    @GetMapping("/user")
    public String getUsers() {
        return "Hello Spring Security";
    }
}
